package com.mixi.feedreader;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;

public class Splash extends Activity{
	
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.splash);
        
        Thread splash = new Thread(){
			public void run() {
				try {
					
					Thread.sleep(4000);
//					runOnUiThread(new Runnable() {
//						
//						@Override
//						public void run() {
//							logo.setVisibility(View.GONE);
//							logo.setImageDrawable(getResources().getDrawable(R.drawable.e_sch_logo));
//							logo.setVisibility(View.VISIBLE);
//						}
//					});
					
//					Thread.sleep(2800);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}finally{
					Log.i("xct", "splash running");
					finish();
					stop();
					//System.exit(0);
				}
				
				
				};
		};
		splash.start();
		
	 }
	
	
	
}
